<script language="javascript">
	function validar()
	{
		var validate=true;
		var msj="Estimado Usuario, verifique los siguientes campos:\n";
		var regexp;
		
		//validando formulario
		//campo numerico
		regexp = /[0-9]+/; 
		if(document.getElementById('cedula').value.search(regexp))
		{
			msj=msj+"- C\u00e9dula\n ";
			validate=false;
		}
		//correo electronico
		regexp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+[a-zA-Z0-9]+[a-zA-Z0-9\.]+$/;
		if(document.getElementById('email').value.search(regexp))
		{
			msj=msj+"- Correo Electr\u00f3nico\n ";
			validate=false;
		}
		if (!validate)
		{
			alert(msj);
			return false;		
		}
		else
		{
			document.getElementById('email').value=trim(document.getElementById('email').value.toLowerCase());
			return true;
		}
	}
</script>
<form name="formulario" method="post" action="usuario/recuperar" onSubmit="return validar();">
	<input name="caso" id="caso" type="hidden" value='resetear'/>
	<table align="center" border="0" cellpadding="2" cellspacing="2" width="98%">
		<tr><td class="separator" colspan="2">&nbsp;</td></tr>
		<tr><td class="separator" colspan="2">&nbsp;</td></tr>
		<tr>
			<td class="celBlanca" colspan="2">
				<p align="center">
					&nbsp;<b>Para recuperar su Usuario(alias) y/o Contrase&ntilde;a, ingrese su C&eacute;dula y Correo Electr&oacute;nico</b>&nbsp;
				</p>
			</td>
		</tr>
		<tr><td class="separator" colspan="2">&nbsp;</td></tr>
		<tr>
			<td class="celBlanca" width="45%"><div align="right">&nbsp;C&eacute;dula <span style="color:red;">*</span></div></td>
			<td class="celBlancaFin" width="55%">
				&nbsp;<input type="text" name="cedula" id="cedula" value="" size="30" maxlength="8" onKeyPress="return valText(this.value, event, 'int');"/>
			</td>
		</tr>
		<tr>
			<td class="celBlanca"><div align="right">&nbsp;Correo Electr&oacute;nico <span style="color:red;">*</span></div></td>
			<td class="celBlancaFin">
				&nbsp;<input type="text" name="email" id="email" value="" size="30" maxlength="100" onKeyUp="this.value = this.value.toLowerCase();"/>&nbsp;
				<span class="ejemplo">Ej. usuario@dominio.com</span>
			</td>
		</tr>
		<tr>
				<td colspan="2" class="msjError"><p align="center">&nbsp;<?php if(isset($msj)) print $msj;?></p></td>
		</tr>		
		<tr><td class="separator" colspan="2">&nbsp;</td></tr>					
		<tr>
			<td colspan="2" align="center">
				<div align="center">
					<input type="button" name="btnRegresar" value="Regresar" class="boton" onClick="location.href='usuario/';" />&nbsp;&nbsp;
					<input type="submit" name="btnLogin" value="Aceptar" class="boton">
					
				</div>
			</td>
		</tr>
		<tr><td class="separator" colspan="2">&nbsp;</td></tr>
	</table>
</form>